package com.freeLearning.boot.course.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.freeLearning.boot.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("course_audit")
public class CourseAudit{
    /**
     * 主键ID
     */
    @Schema(description = "ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "课程ID")
    private Long courseId;

    @Schema(description = "审核状态")
    private Integer status;

    @Schema(description = "审核意见")
    private String opinion;

    @Schema(description = "审核人id")
    private Long auditorId;

    @Schema(description = "审核人姓名")
    private String auditorName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "审核时间")
    private LocalDateTime auditTime;

}
